/**
 * @name StepBotton
 * @author darcrand
 * @desc 步骤按钮
 */

import React, { Component } from 'react'
import './styles.scss'

class StepBotton extends Component {
    static defaultProps = {
        text: '',
        disabled: false,
        handleClick: () => {}
    }

    render() {
        const { text, disabled, handleClick } = this.props

        return (
            <span classes={disabled ? 'step-item-disabled' : 'step-item'} onClick={handleClick}>
                {text}
            </span>
        )
    }
}

export default StepBotton
